VERSION=1.0
PROJECT=guoguo-5gpjbxg4e6a3acfc_guoguo
DOCKER_USERNAME=1193032532
DOCKER_PASSWORD=djs19960601

cd .. && npm run ins && pnpm run build 
rm -fr docker/dist
mv dist docker/dist
cd docker

docker build -t $PROJECT:$VERSION .
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD ccr.ccs.tencentyun.com
docker tag $(docker images $PROJECT:$VERSION -q) ccr.ccs.tencentyun.com/tcb-1193032532-fyfg/$PROJECT:$VERSION
docker tag $(docker images $PROJECT:$VERSION -q) ccr.ccs.tencentyun.com/tcb-1193032532-fyfg/$PROJECT:latest
docker push ccr.ccs.tencentyun.com/tcb-1193032532-fyfg/$PROJECT:$VERSION
docker push ccr.ccs.tencentyun.com/tcb-1193032532-fyfg/$PROJECT:latest